<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>承诺</title>
    <link rel="stylesheet" th:href="@{/assets/libs/layui/css/layui.css}"/>
    <script type="text/javascript" th:src="@{/assets/libs/layui/layui.js}"></script>
    <script type="text/javascript" th:src="@{/assets/js/common.js?v=318}"></script>
    <script type="text/javascript" th:src="@{/assets/js/popwindow.js}"></script>
    <script type="text/javascript" th:src="@{/assets/libs/jquery/jquery-3.2.1.min.js}"></script>
</head>
<body>
<form class="layui-form" autocomplete="off">
    <table class="layui-table">
        <tr>
            <td colspan="2">个人承诺</td>
        </tr>
        <tr>
            <td>承诺内容</td>
            <td>
                <span th:text="${name}"></span>承诺:xxxx</td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="radio" name="fisagree" lay-filter="fisagreeFilter" value="0" title="同意承诺"/>
            </td>
        </tr>
    </table>
</form>
</body>
<script th:inline="javascript">
    layui.use(['form','laydate','util'], function () {
        var form = layui.form;
        form.on('radio(fisagreeFilter)', function(data){
            console.log(data.elem); //得到radio原始DOM对象
            console.log(data.value); //被点击的radio的value值
            parent.parentBack(data.value);
        });
    })
</script>
</html>